package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLInputManager;
import HLLib.base.HLList;

public class HLClassInputManager extends HLLibClass {
    public HLClassInputManager(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLInputManager();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLInputManager.DownPointerX();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.DownPointerX());
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                HLInputManager.DownPointerY();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.DownPointerY());
            }
            break;
        }
        case 2: {
            if (resultOwnerObject == null) {
                HLInputManager.CurPointerX();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.CurPointerX());
            }
            break;
        }
        case 3: {
            if (resultOwnerObject == null) {
                HLInputManager.CurPointerY();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.CurPointerY());
            }
            break;
        }
        case 4: {
            if (resultOwnerObject == null) {
                HLInputManager.DeltaPointerX();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.DeltaPointerX());
            }
            break;
        }
        case 5: {
            if (resultOwnerObject == null) {
                HLInputManager.DeltaPointerY();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.DeltaPointerY());
            }
            break;
        }
        case 6: {
            HLInputManager.keyPressed(args.GetInt(0));
            break;
        }
        case 7: {
            HLInputManager.keyReleased(args.GetInt(0));
            break;
        }
        case 8: {
            HLInputManager.pointerPressed((HLList)args.GetObject(0));
            break;
        }
        case 9: {
            HLInputManager.pointerReleased((HLList)args.GetObject(0));
            break;
        }
        case 10: {
            HLInputManager.pointerDragged((HLList)args.GetObject(0));
            break;
        }
        case 11: {
            HLInputManager.getCurInput();
            break;
        }
        case 12: {
            HLInputManager.clearCurInput();
            break;
        }
        case 13: {
            if (resultOwnerObject == null) {
                HLInputManager.GetEnabledAndEnabledOnce();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.GetEnabledAndEnabledOnce());
            }
            break;
        }
        case 14: {
            if (resultOwnerObject == null) {
                HLInputManager.GetEnabled();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.GetEnabled());
            }
            break;
        }
        case 15: {
            HLInputManager.SetEnabled(args.GetBoolean(0));
            break;
        }
        case 16: {
            if (resultOwnerObject == null) {
                HLInputManager.GetEnabledOnce();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.GetEnabledOnce());
            }
            break;
        }
        case 17: {
            HLInputManager.SetEnabledOnce(args.GetBoolean(0));
            break;
        }
        case 18: {
            if (resultOwnerObject == null) {
                HLInputManager.IsInputDown(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsInputDown(args.GetInt(0)));
            }
            break;
        }
        case 19: {
            if (resultOwnerObject == null) {
                HLInputManager.IsInputUp(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsInputUp(args.GetInt(0)));
            }
            break;
        }
        case 20: {
            if (resultOwnerObject == null) {
                HLInputManager.IsInputHold(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsInputHold(args.GetInt(0)));
            }
            break;
        }
        case 21: {
            if (resultOwnerObject == null) {
                HLInputManager.IsInputDownOrHold(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsInputDownOrHold(args.GetInt(0)));
            }
            break;
        }
        case 22: {
            if (resultOwnerObject == null) {
                HLInputManager.IsInputDownOrRepeat(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsInputDownOrRepeat(args.GetInt(0)));
            }
            break;
        }
        case 23: {
            if (resultOwnerObject == null) {
                HLInputManager.IsInputRepeat(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsInputRepeat(args.GetInt(0)));
            }
            break;
        }
        case 24: {
            if (resultOwnerObject == null) {
                HLInputManager.IsPointerDrag();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsPointerDrag());
            }
            break;
        }
        case 25: {
            if (resultOwnerObject == null) {
                HLInputManager.IsPointerClick();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsPointerClick());
            }
            break;
        }
        case 26: {
            if (resultOwnerObject == null) {
                HLInputManager.PointDownInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointDownInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 27: {
            if (resultOwnerObject == null) {
                HLInputManager.PointDownInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointDownInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 28: {
            if (resultOwnerObject == null) {
                HLInputManager.PointDownOrHoldInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointDownOrHoldInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 29: {
            if (resultOwnerObject == null) {
                HLInputManager.PointDownOrHoldInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointDownOrHoldInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 30: {
            if (resultOwnerObject == null) {
                HLInputManager.PointDownOrRepeatInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointDownOrRepeatInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 31: {
            if (resultOwnerObject == null) {
                HLInputManager.PointDownOrRepeatInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointDownOrRepeatInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 32: {
            if (resultOwnerObject == null) {
                HLInputManager.PointUpInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointUpInRect(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 33: {
            if (resultOwnerObject == null) {
                HLInputManager.PointUpInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.PointUpInRect1(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 34: {
            if (resultOwnerObject == null) {
                HLInputManager.IsPinching();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, HLInputManager.IsPinching());
            }
            break;
        }
        case 35: {
            if (resultOwnerObject == null) {
                HLInputManager.GetPinchScale();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLInputManager.GetPinchScale());
            }
            break;
        }
        }
    }
}
